package com.chaodev.base.service;

import com.github.pagehelper.PageInfo;
import com.chaodev.base.model.LearningPark;
import com.chaodev.base.model.UserInfo;
import org.springframework.dao.DataAccessException;

import java.util.List;

/**
 * vcbase
 *
 * @author 95634
 * @描述
 * @date 2023/6/9 11:18
 **/
public interface LearningParkService {
    /**
     * 获取学习园区信息
     * @param id
     * @return TbLearningPark
     */
    LearningPark findDataById(String id);

    /**
     * 保存学习园区信息
     * @throws DataAccessException
     */
    void saveData(LearningPark learningPark, UserInfo userInfo) throws DataAccessException;

    /**
     * 新增学习园区信息
     * @throws DataAccessException
     */
    void insertData(LearningPark learningPark) throws DataAccessException;

    /**
     * 更新学习园区信息
     * @throws DataAccessException
     */
    void updateDataById(LearningPark learningPark) throws DataAccessException;

    /**
     * 删除学习园区信息
     * @param id
     * @throws DataAccessException
     */
    void deleteDataById(String id) throws DataAccessException;

    /**
     * 查询列表
     * @return List
     */
    List<LearningPark> queryDataList(LearningPark learningPark);

    /**
     * 查询分页
     * @param start
     * @param limit
     * @return PageInfo
     */
    PageInfo<LearningPark> queryPageList(int start, int limit, LearningPark learningPark);

    void updateVisitNum(LearningPark park);
}
